using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace TimeTableManagement.Entities
{
    /// <summary>
    /// 
    /// </summary>
    public class Tb_Department
    {
        public Tb_Department()
        {
            this.Tb_Course = new List<Tb_Course>();
            this.Tb_Education = new List<Tb_Education>();
            this.Tb_People = new List<Tb_People>();
        }

        public int id { get; set; }
        [Required]
        [Display(Name = "Code")]
        public string code { get; set; }
        [Required]
        [Display(Name = "Name")]
        public string name { get; set; }
        [Display(Name = "Description")]
        [DataType(DataType.MultilineText)]
        [System.Web.Mvc.AllowHtml]
        public string description { get; set; }
        public virtual ICollection<Tb_Course> Tb_Course { get; set; }
        public virtual ICollection<Tb_Education> Tb_Education { get; set; }
        public virtual ICollection<Tb_People> Tb_People { get; set; }
    }
}

